<?php
$fileName=$_POST['fileName'];
$username=$_POST['username'];
$pw=$_POST['pw'];
$nickname=$_POST['nickname'];
$birthday=$_POST['birthday'];
$email=$_POST['email'];
include_once ("conn.php");
$postSingup = new Bbs();
$result = $postSingup -> singup($fileName,$username,$pw,$nickname,$birthday,$email);
if($result['error']){
    $a['error'] = 1;
    $a['errMsg'] = $result['errMsg'];
}
else{
    $a['error'] = 0;
}
echo json_encode($a);